package com.simtop.service.impl;

import com.simtop.dao.ApiMapper;
import com.simtop.dao.LayOutMapper;
import com.simtop.pojo.wddata.LayOut;
import com.simtop.pojo.wddata.LayOutVos;
import com.simtop.pojo.wddata.LayOutVosss;
import com.simtop.service.LayOutService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class LayOutServiceImpl implements LayOutService {
    @Autowired
    private ApiMapper apiMapper;

    @Autowired
    private LayOutMapper layOutMapper;


    @Override
    public List<LayOutVos> findAllLayOut(String layoutName) {
        return  layOutMapper.findAllLayOut(layoutName);
    }

    @Override
    public LayOutVosss finU3dData() {
        return layOutMapper.finU3dData();
    }

    @Override
    public void upU3dData(Integer ids, String layoutCon) {
        layOutMapper.upU3dData(ids,layoutCon);
    }

    @Override
    public void setlayoutuseStatus(Integer id, Integer status) {
        layOutMapper.setlayoutuseStatus(id,status);

    }

    @Override
    public void setAllStatus() {
        layOutMapper.setAllStatus();
    }

    @Override
    public void insertplantName(Integer id, String layoutName, String layoutPlant) {
        layOutMapper.insertplantName(id,layoutName,layoutPlant);
    }

    @Override
    public void deleteGroupById(Integer id) {
        layOutMapper.deleteGroupById(id);
    }

    @Override
    public void deleteGroupById1(Integer id) {
        layOutMapper.deleteGroupById1(id);
    }

    @Override
    public void deleteGroup(Integer id) {
        layOutMapper.deleteGroup(id);
    }

    @Override
    public void deleteGroup1(Integer id) {
        layOutMapper.deleteGroup1(id);
    }

    @Override
    public void getAllOne() {
        layOutMapper.getAllOne();
    }

    @Override
    public void startU3d(Integer id, Integer status) {
        layOutMapper.startU3d(id,status);
    }

    @Override
    public LayOutVosss finU3dDataOne() {
       return   layOutMapper.finU3dDataOne();
    }

    @Override
    public void insertNew(LayOut layOut) {
         layOutMapper.insertNew(layOut);
    }

    @Override
    public int findOneNameId(String layoutName) {
        return layOutMapper.findOneNameId(layoutName);
    }

    @Override
    public void Chaaa(Integer id) {
        layOutMapper.Chaaa(id);
    }

    @Override
    public void changeDeleteStatus(Integer id) {
        layOutMapper.changeDeleteStatus(id);
    }

    @Override
    public void newinsertplantName(LayOut layOut) {
        layOutMapper.newinsertplantName(layOut);
    }

    @Override
    public List<String> findAllLayName() {
        return layOutMapper.findAllLayName();
    }
}
